home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / autoconfig / nsILDAPSyncQuery.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  103 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsILDAPSyncQuery.idl
  3.  */
  4.  
  5. #ifndef __gen_nsILDAPSyncQuery_h__
  6. #define __gen_nsILDAPSyncQuery_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsILDAPURL; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsILDAPSyncQuery */
  21. #define NS_ILDAPSYNCQUERY_IID_STR "0308fb36-1dd2-11b2-b16f-8510e8c5311a"
  22.  
  23. #define NS_ILDAPSYNCQUERY_IID \
  24.   {0x0308fb36, 0x1dd2, 0x11b2, \
  25.     { 0xb1, 0x6f, 0x85, 0x10, 0xe8, 0xc5, 0x31, 0x1a }}
  26.  
  27. class NS_NO_VTABLE nsILDAPSyncQuery : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ILDAPSYNCQUERY_IID)
  31.  
  32.   /**
  33.    * getQueryResults
  34.    *
  35.    * Create a new LDAP connection do a synchronous LDAP search and return 
  36.    * the results.
  37.    * @param aServerURL - LDAP URL with parameters to a LDAP seach 
  38.    *                     ("ldap://host/base?attributes?one/sub?filter")
  39.    * @param aProtocolVersion - LDAP protocol version to use for connection
  40.    *                           (nsILDAPConnection.idl has symbolic constants)
  41.    * @return results
  42.    */
  43.   /* wstring getQueryResults (in nsILDAPURL aServerURL, in unsigned long aProtocolVersion); */
  44.   NS_IMETHOD GetQueryResults(nsILDAPURL *aServerURL, PRUint32 aProtocolVersion, PRUnichar **_retval) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSILDAPSYNCQUERY \
  50.   NS_IMETHOD GetQueryResults(nsILDAPURL *aServerURL, PRUint32 aProtocolVersion, PRUnichar **_retval); 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  53. #define NS_FORWARD_NSILDAPSYNCQUERY(_to) \
  54.   NS_IMETHOD GetQueryResults(nsILDAPURL *aServerURL, PRUint32 aProtocolVersion, PRUnichar **_retval) { return _to GetQueryResults(aServerURL, aProtocolVersion, _retval); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSILDAPSYNCQUERY(_to) \
  58.   NS_IMETHOD GetQueryResults(nsILDAPURL *aServerURL, PRUint32 aProtocolVersion, PRUnichar **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQueryResults(aServerURL, aProtocolVersion, _retval); } 
  59.  
  60. #if 0
  61. /* Use the code below as a template for the implementation class for this interface. */
  62.  
  63. /* Header file */
  64. class nsLDAPSyncQuery : public nsILDAPSyncQuery
  65. {
  66. public:
  67.   NS_DECL_ISUPPORTS
  68.   NS_DECL_NSILDAPSYNCQUERY
  69.  
  70.   nsLDAPSyncQuery();
  71.  
  72. private:
  73.   ~nsLDAPSyncQuery();
  74.  
  75. protected:
  76.   /* additional members */
  77. };
  78.  
  79. /* Implementation file */
  80. NS_IMPL_ISUPPORTS1(nsLDAPSyncQuery, nsILDAPSyncQuery)
  81.  
  82. nsLDAPSyncQuery::nsLDAPSyncQuery()
  83. {
  84.   /* member initializers and constructor code */
  85. }
  86.  
  87. nsLDAPSyncQuery::~nsLDAPSyncQuery()
  88. {
  89.   /* destructor code */
  90. }
  91.  
  92. /* wstring getQueryResults (in nsILDAPURL aServerURL, in unsigned long aProtocolVersion); */
  93. NS_IMETHODIMP nsLDAPSyncQuery::GetQueryResults(nsILDAPURL *aServerURL, PRUint32 aProtocolVersion, PRUnichar **_retval)
  94. {
  95.     return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97.  
  98. /* End of implementation class template. */
  99. #endif
  100.  
  101.  
  102. #endif /* __gen_nsILDAPSyncQuery_h__ */
  103.